import React from 'react';
import * as Icons from '@ant-design/icons';

// 动态渲染图标组件
const DynamicIcon = ({ iconName }) => {
  const IconComponent = Icons[iconName];
  if (!IconComponent) {
    return null;
  }
  return <IconComponent />;
};

export default DynamicIcon;